package com.sundi.ecgeneralize.service.impl;

import com.sundi.ecgeneralize.dto.GrouponrulesDto;
import com.sundi.ecgeneralize.entity.EcCoupon;
import com.sundi.ecgeneralize.entity.EcGrouponRules;
import com.sundi.ecgeneralize.mapper.EcGrouponRulesMapper;
import com.sundi.ecgeneralize.service.IEcGrouponRulesService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 团购规则表 服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-26
 */
@Service
public class EcGrouponRulesServiceImpl extends ServiceImpl<EcGrouponRulesMapper, EcGrouponRules> implements IEcGrouponRulesService {

    @Override
    public List<EcGrouponRules> selectGrouponRulesList(GrouponrulesDto grouponrulesDto) {
        return this.baseMapper.selectGrouponRulesList(grouponrulesDto);
    }

    @Override
    public void updAndDel(Integer id) {
        this.baseMapper.updAndDel(id);
    }

    @Override
    public EcCoupon getGrouponRules(Integer id) {
        return this.baseMapper.getGrouponRules(id);
    }
}
